﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentacion/Template.master" AutoEventWireup="true" CodeBehind="API_Empleado_Consultar.aspx.cs" Inherits="UricaoWeb.Presentacion.API_Empleado_Consultar" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Style" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TituloModulo" runat="server">
            <h2>Empleado</h2>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="OpcionesModulo" runat="server">
            <div id='cssmenu'>
        <ul>
           <li class='has-sub'><a href="API_empleado_agregar.aspx"><span>Agregar</span></a>
              
           </li>
           <li class='has-sub'><a href="API_Empleado_Consultar.aspx"><span>Consultar</span></a>
           </li>  
        </ul>
    </div>
            
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContenidoDelModulo" runat="server">
 
     
         <h2>Consultar</h2>
            <br />
            <br />
            <form role="search" class="searchForm" method="get" action="API_Empleado_Consultar.aspx">
                <input id="inptSearch" name="inptSearch" class="inputPersonalizado" type="text" placeholder=" Buscar"  />
                <button id="btnSearch" class="botonCualquiera" type="submit"  >
                    <img class="glyphicon" src="images/glyphicons_search.png" />
                 </button>
           </form>
         <br />    
         <br />
     <form id="form1" runat="server">
    <h3>Lista de Empleados</h3> <br /><br />                     
         <asp:MultiView ID="MV_ListaEmpleado" runat="server" ActiveViewIndex="0">
                <asp:View ID="GV_Empleado" runat="server">
                    <asp:GridView ID="GridViewEmpleado" CssClass="mGrid" AllowPaging="True" HorizontalAlign ="Center" runat="server" 
                                            BorderStyle="None"  AllowSorting="true" GridLines="None" AutoGenerateColumns="False"  
                                            DataKeyNames="idEmpleado" Width="510px" ForeColor="#99CCFF" 
                                            OnSelectedIndexChanged="GvEmpleadoObtenerIndice" PageSize="5" 
                                            OnPageIndexChanging="GridViewEmpleado_PageIndexChanged" >
                       <AlternatingRowStyle CssClass="alt" />
                         <Columns>
                            <asp:BoundField HeaderText="Nombre" DataField="nombreEmpleado" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                            <asp:BoundField HeaderText="Apellido" DataField="apellidoEmpleado" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                            <asp:CommandField HeaderText="Acciones" ShowSelectButton="True" ButtonType="Image" ItemStyle-HorizontalAlign="Center"  
                                                            SelectImageUrl="images/glyphicons_eye_open.png" ItemStyle-VerticalAlign="Middle"  />
                         </Columns>
                        <PagerStyle CssClass="pgr" />
                                    <SelectedRowStyle HorizontalAlign="Center" BackColor="#3366FF" BorderColor="Black" />
                    </asp:GridView>

                </asp:View>
            </asp:MultiView>
   
    </form>
</asp:Content>
